/*
* / licon String Nullablel /title String Nullable//url String NonNull
*l statusBarColor String Nullable//hideAppBar bool Nullable
* */
class CommonModel {
  /*
  * 根据接口写出里面的属性
  * */
  final String icon;
  final String title;
  final String url;
  final String statusBarColor;
  final bool hideAppBar;

  //实现构造
  CommonModel(
      {required this.icon,
      required this.title,
      required this.url,
      required this.statusBarColor,
      required this.hideAppBar});
  //工厂方法
  factory CommonModel.fromJson(Map<String, dynamic> json) {
    return CommonModel(
      icon: json['icon'],
      title: json['title'],
      url: json['url'],
      statusBarColor: json['statusBarColor'],
      hideAppBar: json['hideAppBar'],
    );
  }
}
